<?php

class Application_Model_LightUserArmyTbl extends  Zend_Db_Table_Abstract
{
	protected $_name = 'light_user_army';
	
	function checkIfUserExists($user_id)
    {
        $select = $this->_db->select()
                            ->from($this->_name,array('user_fk'))
                            ->where('user_fk=?',$user_id);
        $result = $this->getAdapter()->fetchOne($select);
        if($result){
            return true;
        }
        return false;
    }
}

